namespace TableDef
{
    public class t_windowdef : ResDataBase
    {
        ///<summary>
        /*UI名*/
        ///</summary>
        public string m_strPanelName { get; set; }

        ///<summary>
        /*uiprefab路径*/
        ///</summary>
        public string m_strPrefabPath { get; set; }

        ///<summary>
        /*所在互斥组，-1就是不互斥*/
        ///</summary>
        public int m_nToggleGroup { get; set; }

        ///<summary>
        /*所在大层
0、
1、战斗内直接打开的
2、普通界面
3、导航条
4、弹窗、新手引导
5、网络弹窗
6、一句话提示
*/
        ///</summary>
        public int m_nLayer { get; set; }

        ///<summary>
        /*是不是逻辑窗口，如果是逻辑窗口，就支持escape退出*/
        ///</summary>
        public int m_nLogicWindow { get; set; }

        ///<summary>
        /*是否全屏遮挡窗口*/
        ///</summary>
        public int m_nFullWindow { get; set; }

        ///<summary>
        /*关闭的时候是否删除*/
        ///</summary>
        public int m_nRealClose { get; set; }

        ///<summary>
        /**/
        ///</summary>
        public string m_strBgm { get; set; }


        protected override void OnInit()
        {
            base.OnInit();
            m_strPanelName = GetString("panelName");
            m_strPrefabPath = GetString("prefabPath");
            m_nToggleGroup = GetInt("toggleGroup");
            m_nLayer = GetInt("Layer");
            m_nLogicWindow = GetInt("LogicWindow");
            m_nFullWindow = GetInt("FullWindow");
            m_nRealClose = GetInt("RealClose");
            m_strBgm = GetString("Bgm");
        }
    }
}
